import './App.css';
import { BrowserRouter as Router, Routes, Route, Link } from "react-router-dom"
import MyPubSub from './PubSub/index';

const First = () => {
  return (
    <p>first组件</p>
  )
}



function App() {
  return (
    <Router>
      <div className="App">
        <p>react路由基础</p>
        <Link to="/first">页面一</Link>
        <Routes>
          <Route path="/first" element={<First />}></Route>
        </Routes>
        <MyPubSub></MyPubSub>
      </div>
    </Router>
  );
}

export default App;
